package test.my.com.myapplicationtest.RangeSliderBar;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.ButterKnife;
import test.my.com.myapplicationtest.R;

/**
 * Author : Cooper
 * Time : 2017/7/5  15:50
 * Description :
 */

public class RangeSliderBarActivity extends Activity {
    @Bind(R.id.rangeSliderBar)
    RangeSliderBar rangeSliderBar;
    @Bind(R.id.tv)
    TextView tv;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.aty_range_slider_bar_layout);
        ButterKnife.bind(this);
        rangeSliderBar.setSliderDragProgressCallBack(new RangeSliderBar.SliderDragProgressCallBack() {
            @Override
            public void dragProgress(int progress) {
                tv.setText(progress+"");
                Log.e("ah", "ah 3434  progress === "+progress);
            }
        });
    }
}
